<?php

namespace App\Policies\Topic\Topic;

use App\Models\User;
use App\Models\Topic\Topic;

class TopicPolicy
{
    public function update(User $user, Topic $topic)
    {
         return $user->isAuthorOf($topic);
    }
    public function destroy(User $user, Topic $topic)
    {
          return $user->isAuthorOf($topic);
    }
}
